﻿using System;
using System.Reflection;
using System.Windows.Forms;
using EdlinSoftware.RegexTester.Properties;

namespace EdlinSoftware.RegexTester
{
    public partial class AboutForm : Form
    {
        #region Constructors

        public AboutForm()
        {
            InitializeComponent();

            AssemblyName assemblyName = Assembly.GetExecutingAssembly().GetName();
            DateTime buildDateTime = new DateTime(2000, 1, 1);
            buildDateTime = buildDateTime.AddDays(assemblyName.Version.Build);
            buildDateTime = buildDateTime.AddSeconds(2 * assemblyName.Version.Revision);

            lBuildDateTime.Text = string.Format(Resources.Build, buildDateTime);
        }

        #endregion
    }
}
